package club.zhilin.guli.service.edu.feign;

import club.zhilin.guli.common.base.result.CommonResult;
import club.zhilin.guli.service.edu.feign.fallback.VodMediaServiceFallBackImpl;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhilin
 * @since 2022/2/18 19:43
 */
@FeignClient(value = "service-vod")
@SentinelResource(fallbackClass = VodMediaServiceFallBackImpl.class)
public interface VodMediaService {
    /**
     * 远程调用阿里云删除视频接口
     *
     * @param ids 视频id
     * @return commonResult
     */
    @DeleteMapping("/admin/vod/media/video/{ids}")
    CommonResult<String> removeVideo(@PathVariable("ids") String ids);
}
